package com.ydsungan.springtest.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
@ConfigurationProperties(prefix = "user")
public class UserConfig {
    private String userPort;
    private Map<String,String> userIp;
    private String ownerPort;
    private String ownerIp;
    private String owner;
    private String ownerId;
    private String ownerDataPath;

    public String getUserPort() {
        return userPort;
    }

    public Map<String, String> getUserIp() {
        return userIp;
    }

    public String getOwnerPort() {
        return ownerPort;
    }

    public String getOwnerIp() {
        return ownerIp;
    }

    public String getOwner() {
        return owner;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public String getOwnerDataPath() {
        return ownerDataPath;
    }

    public void setUserPort(String userPort) {
        this.userPort = userPort;
    }

    public void setUserIp(Map<String, String> userIp) {
        this.userIp = userIp;
    }

    public void setOwnerPort(String ownerPort) {
        this.ownerPort = ownerPort;
    }

    public void setOwnerIp(String ownerIp) {
        this.ownerIp = ownerIp;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public void setOwnerDataPath(String ownerDataPath) {
        this.ownerDataPath = ownerDataPath;
    }
}
